package com.azier.kapacitor.script.node.nodebind;

import com.azier.kapacitor.script.node.DerivativeNode;
import com.azier.kapacitor.script.node.Node;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/

/**
Create a new node that computes the derivative of adjacent points.
**/

/**
创建一个新节点来计算相邻点的导数。
**/
public interface DerivativeNodeBind extends Node {

    /**
    Create a new node that computes the derivative of adjacent points.
    **/
    /**
    创建一个新节点来计算相邻点的导数。
    **/
    default DerivativeNode derivative(String field){
        DerivativeNode nextNode = new DerivativeNode(field);
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }
}